﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SHOPTIENDUNG</title>
<link rel="stylesheet" type="text/css" href="../css/style.css" />
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/ddaccordion.js"></script>
<script type="text/javascript">
ddaccordion.init({
	headerclass: "submenuheader", //Shared CSS class name of headers group
	contentclass: "submenu", //Shared CSS class name of contents group
	revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
	mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
	collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
	defaultexpanded: [], //index of content(s) open by default [index1, index2, etc] [] denotes no content
	onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
	animatedefault: false, //Should contents open by default be animated into view?
	persiststate: true, //persist state of opened contents within browser session?
	toggleclass: ["", ""], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
	togglehtml: ["suffix", "<img src='../images/plus.gif' class='statusicon' />", "<img src='../images/minus.gif' class='statusicon' />"], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
	animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
	oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
		//do nothing
	},
	onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
		//do nothing
	}
})
</script>
<script src="../js/jquery.jclock-1.2.0.js.txt" type="text/javascript"></script>
<script type="text/javascript" src="../js/jconfirmaction.jquery.js"></script>
<script type="text/javascript">
	
	$(document).ready(function() {
		$('.ask').jConfirmAction();
	});
	
</script>
<script type="text/javascript">
$(function($) {
    $('.jclock').jclock();
});
</script>

<script language="javascript" type="text/javascript" src="../js/niceforms.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="../css/niceforms-default.css" />

</head>
<body>
<div id="main_container">
	<?php include('header.php');?>
    
    <div class="main_content">
    
                <div class="menu">
                    <ul>
                    <li><a class="current" href="index.php">Trang chủ</a></li>
                    <li><a href="list.html">Quản lý danh mục<!--[if IE 7]><!--></a><!--<![endif]-->
                    <!--[if lte IE 6]><table><tr><td><![endif]-->
                        <ul>
                        <li><a href="" title="">Lorem ipsum dolor sit amet</a></li>
                       
                        </ul>
                    <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                    </li>
                    <li><a href="login.php">Quản lý người dùng<!--[if IE 7]><!--></a><!--<![endif]-->
                    <!--[if lte IE 6]><table><tr><td><![endif]-->
                        <ul>
                        <li><a href="" title="">Lorem ipsum dolor sit amet</a></li>
                       
                        <li><a class="sub1" href="" title="">sublevel2<!--[if IE 7]><!--></a><!--<![endif]-->
                        <!--[if lte IE 6]><table><tr><td><![endif]-->
                            <ul>
                                <li><a href="" title="">sublevel link</a></li>
                              
                                <li><a class="sub2" href="#nogo">sublevel3<!--[if IE 7]><!--></a><!--<![endif]-->
                        
                                <!--[if lte IE 6]><table><tr><td><![endif]-->
                                    <ul>
                                        <li><a href="#nogo">Third level-1</a></li>                                     
                                    </ul>
                        
                                <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                                </li>
                                <li><a href="" title="">sulevel link</a></li>
                            </ul>
                        <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                        </li>
                    
                         <li><a href="" title="">Lorem ipsum dolor sit amet</a></li>
                        </ul>
                    <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                    </li>               
                    
                    
                    </ul>
                    </div> 
					
    <div class="center_content"> 
    <div class="left_content">    
    		<div class="sidebar_search">
            <form>
            <input type="text" name="" class="search_input" value="search keyword" onclick="this.value=''" />
            <input type="image" class="search_submit" src="../images/search.png" />
            </form>            
            </div>
    
            <div class="sidebarmenu">
            
                <a class="menuitem submenuheader" href="">Danh mục</a>
                <div class="submenu">
                    <ul>
                    <li><a href="">Thêm danh mục</a></li>                    
                    </ul>
                </div>
                <a class="menuitem submenuheader" href="" >Sản phẩm</a>
                <div class="submenu">
                    <ul>
					<li><a href="?action=product">Hiển thị sản phẩm</a></li>  
                    <li><a href="?action=add_product">Thêm sản phẩm</a></li>                   
                    </ul>
                </div>   
				<a class="menuitem submenuheader" href="">Liên hệ</a>
				<div class="submenu">
                    <ul>
                    <li><a href="">Hiển thị liên hệ</a></li>   
					<li><a href="">Thêm nội dung liên hệ</a></li> 					
                    </ul>
                </div>
                <a class="menuitem" href="">Hỗ trợ</a>
               
                    
            </div>    
            <!--
            <div class="sidebar_box">
                <div class="sidebar_box_top"></div>
                <div class="sidebar_box_content">
                <h3>User help desk</h3>
                <img src="../images/info.png" alt="" title="" class="sidebar_icon_right" />
                <p>
ABC
                </p>                
                </div>
                <div class="sidebar_box_bottom"></div>
            </div>
            
            -->
    </div> 
	<div class="right_content"> 
	<?php 
		$action=$_REQUEST['action'];
		switch($action)
		{
			case "add_product":
				include("them_san_pham.php");
			break;
			case "product":
				include("san_pham_edit.php");
			break;
			case "edit":
				$proId=$_REQUEST['proId'];
				include("them_san_pham.php");
			break;
			case "lienhe":
				
			break;
			
			
		}
	?>
	</div>
  </div>   <!--end of center content -->               
       
    <div class="clear"></div>
 </div> <!--end of main content-->
	
    
    <!-- Footer -->
	<?php include("footer.php")?>
</div>		
</body>
</html>